import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: ()=>import("../views/index.vue"),
    children:[
      {
        path: 'about',
        name: 'About',
        component: () => import('../views/About.vue')
      },
      {
        path: 'home',
        name: 'Home',
        component: Home
      },
      {
        path: 'fillter',
        name: 'Fillter',
        component: ()=>import("../views/Fillter.vue")
      },
      {
        path: 'websoket',
        name: 'Websoket',
        component: ()=>import("../views/websoket.vue")
      }
    ]
  },
  {
    path:'/chart',
    name:'Chart',
    component:()=>import("../views/bigScreen/Chart.vue")
  }
]

const router = new VueRouter({
  routes
})

export default router
